import request from '../utils/request'
/**
 * 登录
 * @param {*} obj 
 * @returns 
 */
export const logins = async (obj) => {
    return request({
        url: "api/login/logins",
        method: "post",
        data: obj
    });
}
/**
 * 检查用户是否登录
 * @param {*} obj 
 * @returns 
 */
export const check_login = (obj) => {
    return request({
        url: "api/login/check_login",
        method: "get",
        params: obj,      
    });
}

/**
 * 获取登录历史
 * @param {*} obj 
 * @returns 
 */
export const get_history = (obj) => {
    return request({
        url: "api/login/get_history",
        method: "get",
        params: obj,  
    });
}